<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        let un = document.location.search.toString();
        let welcome = document.createElement('h1');
        let subUn = un.substr(1);
        let userArr  = subUn.split('&');
        let username = userArr[0];

        let splitusername = username.split('=');
        let session = sessionStorage.getItem('uName');
       // let storageName = localStorage.getItem('stoName');
        if(session == null){
            welcome.innerHTML = `欢迎${splitusername[1]}！`
        }else if(subUn == ''){
            welcome.innerHTML = '请输入用户名与密码！！'
        }
        else{
            welcome.innerHTML = `欢迎${session}！`
        }
        document.body.append(welcome);
    </script>
</body>
</html>